import request from '@/utils/request'

// 获取所有配置
export function anchorRewardConfig(type) {
  return request({
    url: `/sys/anchorRewardConfig/page/${type}`,
    method: 'get',
  })
}
// 新增配置
export function anchorRewardConfigAdd(data) {
  return request({
    url: `/sys/anchorRewardConfig/add`,
    method: 'post',
    data,
  })
}
// 删除配置
export function anchorRewardConfigDel(id) {
  return request({
    url: `/sys/anchorRewardConfig/del/${id}`,
    method: 'post',
  })
}
